@import "functions";
@import "../../../node_modules/swiper/dist/css/swiper.css";
@import "mobile/theme";
@import "//at.alicdn.com/t/font_507260_xqcwtl6ymfxyldi.css";
@import "color";
@import "mobile/common";
@import "mobile/category_side";
@import "mobile/ad";
@import "mobile/search_bar";
@import "mobile/goods_list_v";
@import "mobile/goods_list_h";
@import "mobile/goods";
@import "mobile/article";

html{
  font-size: 62.5%;
  height: 100%;
}
body{
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC","Helvetica Neue",STHeiti,"Microsoft Yahei",Tahoma,Simsun,sans-serif;

}

#app{
 .padding-bottom(50);
  min-height: 100%;
}
.iconfont{
  .font-size(16) !important;
}
.bg{
  background-color: rgba(0,0,0,0.3);
  z-index: 9999;
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  display: none;
}
a {
  color: #333;
}
a, a:hover,a:active,a:focus,a:link,a:visited {
  text-decoration: none;
  outline: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
ol, ul {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
p{
 margin: 0;
}

.swiper-container{
  width: 100%;
  .swiper-wrapper{
    .swiper-slide{
      img{
        max-width: 100%;
      }
    }
  }
  .swiper-pagination-white {
    .swiper-pagination-bullet {
      background: @colorYellow;
    }
    .swiper-pagination-bullet-active {
      background: @colorYellow;
    }
  }
}

.sg-box{
  .margin-left(5);
  .margin-right(4);
}
.sg-img-responsive{
  max-width: 100%;
}
.img-responsive{
  display: block;
  max-width: 100%;
}


.nav-box{
  background-color: white;
  .padding-top(10);

  ul{
    overflow: hidden;
    .nav-item{
      float: left;
      width:20%;
      margin: auto;
      align-content: center;
      vertical-align: middle;
      text-align: center;
      i{
        color: @colorGreen1;
      }
      p{
        .font-size(8);

      }
    }
  }
}
.goods-list-header{
  .font-size(12);
  .goods-list-title{
    border-left: 2px solid @colorGreen1;
  }
}
.sort{
  background-color: white;

  .padding(10);
  .padding-bottom(15);
  li{
    float: left;
    width: 33.3333%;
    text-align: center;
    a{
      .font-size(14);
      color: #777777;
    }
  }
  .active{
    color: #ff2220;
  }
}

#wrapper {

  z-index: 1;
  top: 0;
  .height(30);
  bottom: 48px;
  left: 0;
  width: 100%;
  overflow: hidden;
  background-color: white;
  position: relative;
  .padding-top(2);
  &:after{
    content: " ";
    position: absolute;

    top: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid #D9D9D9;
    color: #D9D9D9;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    width:100%
  }
  #scroller {
    .height(40);
    z-index: 1;

    -webkit-tap-highlight-color: rgba(0,0,0,0);

    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -o-text-size-adjust: none;
    text-size-adjust: none;
    ul {
      list-style: none;
      padding: 0;
      margin: 0;
      width: 100%;
      height: 100%;

      a{
        display: inline-block;
      }
      li {
        display: block;
        float: left;
        .font-size(16);
        .padding(8,0);
        .margin(0,8);
        .padding-bottom(7);
        text-align: center;
      }
      .active{
        border-bottom: 2px solid @colorGreen1;
      }
    }
  }
}

.category-bar{
  background-color: white;
  .margin-bottom(5);
  ul{
    .item{
      width: 25%;
      float: left;
      color: #ff320f;
      text-align: center;
      .margin-top(5);
      i{
        .font-size(18)!important;
      }
      p{
        .font-size(10);
      }
    }
  }
}
.get-more{
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  height: 28px;
  padding: 0;
  letter-spacing: normal;
  line-height: 26px;
  font-size: 12px;
  text-align: center;
  color: #000;
  display: block;
  border: 1px solid #ccc;
  background-color: white;
  width: 100%;
}
.coupon-fee{
  .height(22);
  .line-height(22);
  .font-size(12);
  text-align: center;
  position: relative;
  .padding-left(10)!important;
  .padding-right(10)!important;
  background: @colorPink1;
  display: block;
  color: white;
  .padding(5);
}



.coupon-list{
  background-color: white;
  .title{
    text-align: center;
    color: #888;
    .padding(10);
    margin: 0;
    background-color: #eee;
    .iconfont{
      .font-size(15);
      color: @colorGreen1;
    }

  }
  ul{
    width: 80%;
    margin: auto;
    .item{
      float: left;
      width: 33%;
      text-align: center;
      padding: 0;
      .padding-bottom(10);
      i{
        .font-size(50);
        color: #888;
      }
    }
  }
}
.coupon-categories{
  background-color: white;
  .title{
    text-align: center;
    color: #888;
    .padding(10);
    margin: 0;
    background-color: #eee;
    .iconfont{
      .font-size(15);
      color: @colorGreen1;
    }

  }
  ul{

    margin: auto;
    .item{
      float: left;
      width: 33%;
      text-align: center;
      padding: 0;
      .padding-bottom(10);
      i{
        .font-size(30);
        color: #888;
      }
    }
  }
}

.category-list{
  background-color: white;
  .header{
    text-align: left;
    .padding(5,10);
    color: black;
    .font-size(16);
    .padding-top(10);
  }
  ul{
    a{
    li{
      float: left;
      width: 33.333%;
      text-align: center;
      .padding-bottom(10);
        i{
          .font-size(24)!important;
        }
        p{
          .font-size(14);
          margin: 0;
          color: #666;
        }
      }
    }
  }
}
.no-more{
  text-align: center;
  .padding(20);
  color: #a3a3a3;
  .font-size(14);
}
.loading,.no-item{
  text-align: center;
  .padding(8);
  .font-size(12);
  width: 100%;
  clear: both;
}
.user-profile{
  .header{
    background-color: @colorGreen1;
    color: white;
    .tools{
      .height(15);
      .line-height(15);
    }
    .avatar{
      .padding-top(20);
      img{
        .width(80);
        .height(80);
        .border-radius(40);
        margin: auto;
        display: block;
      }
    }
    .nick,.position{
      text-align: center;
      .padding(10);
      .font-size(12);
    }
    .follow{
      .height(35);
      .font-size(12);
      .left,.right{
        .width(60);
        .height(35);
        text-align: center;
        p{
          .margin-bottom(5);
        }
      }
      .left{
        float: left;
      }
      .right{
        float: right;
      }
    }
  }
  .body{
    clear: both;
    .user-menu{
      background-color: white;
      .font-size(12);
      color: #888;
      .menu-item{
        clear: both;
        a{
          color: #888;
        }
        .icon{
          width: 15%;
          float: left;
          clear: both;
          .padding(15,0);
          i{
            margin:0 auto;
            .width(10);
            display: block;
          }
        }
        .link{
          width: 85%;
          float: left;
          position: relative;
          .padding(15,0);

          .r{
            float: right;
            .margin-right(10);
          }
          &:after{
            content: " ";
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            height: 1px;
            border-top: 1px solid #D9D9D9;
            color: #D9D9D9;
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: scaleY(0.5);
            transform: scaleY(0.5);
          }
        }
      }
    }
  }
}
.tpwd{
  display: none;
  position: fixed;
  top: 30%;
  z-index: 99991;
  width: 70%;
  left: 15%;
  background-color: white;
  .height(160);
  border: 1px solid #eee;
  .border-radius(10);
  .padding-top(10);
  text-align: center;
   textarea{
     text-align: center;
     border: 0;
     border-bottom: 1px solid #ccc;
     box-shadow: none;
     overflow: auto;
     outline-style: none;
     resize: none;
     .height(120);
     display: table-cell;
     vertical-align:middle;
     .margin-bottom(5);
   }
}
#toast-container{
  .toast{
    .width(240);
    .toast-message{
      .font-size(12);
    }
  }
}
.user-history-title{
  .font-size(16);
  text-align: center;
  background-color: white;
  .padding(10);
  .margin-bottom(5);
  color: #888;
}
.recommend-box{
  background-color: white;
  overflow: hidden;
  .title{
    .font-size(12);
    .padding(8);
    color: #000;
    i{
      color: #ff002d;
      .font-size(14)!important;
    }
    img{
      .width(10);
    }
  }
  li{

    float: left;
    width:33.333%;
    .item{
      .padding(5);
    }
    img{
      max-width: 100%;
      .border-radius(5);
    }
  }
}
.margin-auto{
  display: block;
  margin: auto;
}
.empty{
  .margin-top(100);
  img{
    width: 40%;
  }
  p{
    .margin-top(20);
    .font-size(14);
    text-align: center;
    color: #a3a3a3;
  }
}
#go-top{
  position: fixed;
  .right(10);
  .bottom(60);
  .width(30);
  .height(30);
  display: none;
  background: @colorGray3;
  .line-height(30);
  i{
    display: block;
    text-align: center;
    .font-size(18)!important;
  }
}